package change;

import classification.PaymentClassification;
import classification.imp.SalariedClassification;
import schedule.PaymentSchedule;
import schedule.imp.MonthlySchedule;

public class ChangeSalariedClassificationTransaction extends ChangeClassificationTransaction {
    private double newSalary;
    public ChangeSalariedClassificationTransaction(int empId, double newSalary) {
        super(empId);
        this.newSalary = newSalary;
    }

    @Override
    public PaymentClassification getClassification() {
        return new SalariedClassification(newSalary);
    }

    @Override
    public PaymentSchedule getPaymentSchedule() {
        return new MonthlySchedule();
    }
}
